<template>
  <div>
    <i class="iconfont icon-container" :style="Styles" :class="className" v-if="className"></i>
    <img :src="pic" v-else-if="pic" :style="Styles" />
  </div>
</template>

<script>
export default {
  name: "IcoIndex",
  props: {
    className: {
      type: String,
    },
    pic: {
      type: String,
    },
    Styles: {
      type: String,
      default: "font-size:16px",
    },
  },
  computed: {
    // 图标类样式
  },
};
</script>

<style scoped>
@import "//at.alicdn.com/t/c/font_4280689_l2cs5cjx7v.css";
.iconfont {
  color: inherit;
  font-size: inherit;
  font-size: 16px;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}
</style>